package cn.itcast.hotel;

public class Demo001 {
    public static void main(String[] args) {
        UserInter(new InterImpl());
    }

    //    nie
    public static void UserInter(Inter inter) {
        inter.show();

    }
}

interface Inter {
    void show();
}

class InterImpl implements Inter {
    @Override
    public void show() {
        System.out.println("jhjjjjjjj");
    }
}